import request from "../utils/request";

export const updateAvatar = (id, file) => {
  return request.connection("put", `/user/updateAvatar/${id}`, file);
};

export const updateInfo = (data) => {
  return request.connection("put", `/user/updateInfo`, data);
};

export const updatePassword = (data) => {
  return request.connection("put", `/user/updatePassword`, data);
};
